// Copyright (c) 2023, yuxinyong@163.com and contributors
// For license information, please see license.txt

frappe.ui.form.on('Item Attribute', {
	setup(frm){
		frm.set_query("item_custom_field", function(doc, cdt, cdn) {			
			return {
				query: "light_mes.queries.get_item_custom_field"
			}
		});
	},
    refresh: function(frm) {
		frm.fields_dict['item_custom_field'].df.ignore_link_validation= true;
		frm.fields_dict['item_custom_field'].$input_area.find(".link-btn").remove();
    }
})